﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010EB RID: 4331
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneUpdatePositionVersionNotify : IMessage<SceneUpdatePositionVersionNotify>, IMessage, IEquatable<SceneUpdatePositionVersionNotify>, IDeepCloneable<SceneUpdatePositionVersionNotify>, IBufferMessage
	{
		// Token: 0x170036E8 RID: 14056
		// (get) Token: 0x0600C1DF RID: 49631 RVA: 0x0020CE11 File Offset: 0x0020B011
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneUpdatePositionVersionNotify> Parser
		{
			get
			{
				return SceneUpdatePositionVersionNotify._parser;
			}
		}

		// Token: 0x170036E9 RID: 14057
		// (get) Token: 0x0600C1E0 RID: 49632 RVA: 0x0020CE18 File Offset: 0x0020B018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneUpdatePositionVersionNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170036EA RID: 14058
		// (get) Token: 0x0600C1E1 RID: 49633 RVA: 0x0020CE2A File Offset: 0x0020B02A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneUpdatePositionVersionNotify.Descriptor;
			}
		}

		// Token: 0x0600C1E2 RID: 49634 RVA: 0x0020CE31 File Offset: 0x0020B031
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneUpdatePositionVersionNotify()
		{
		}

		// Token: 0x0600C1E3 RID: 49635 RVA: 0x0020CE39 File Offset: 0x0020B039
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneUpdatePositionVersionNotify(SceneUpdatePositionVersionNotify other) : this()
		{
			this.posVersion_ = other.posVersion_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C1E4 RID: 49636 RVA: 0x0020CE5E File Offset: 0x0020B05E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneUpdatePositionVersionNotify Clone()
		{
			return new SceneUpdatePositionVersionNotify(this);
		}

		// Token: 0x170036EB RID: 14059
		// (get) Token: 0x0600C1E5 RID: 49637 RVA: 0x0020CE66 File Offset: 0x0020B066
		// (set) Token: 0x0600C1E6 RID: 49638 RVA: 0x0020CE6E File Offset: 0x0020B06E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PosVersion
		{
			get
			{
				return this.posVersion_;
			}
			set
			{
				this.posVersion_ = value;
			}
		}

		// Token: 0x0600C1E7 RID: 49639 RVA: 0x0020CE77 File Offset: 0x0020B077
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneUpdatePositionVersionNotify);
		}

		// Token: 0x0600C1E8 RID: 49640 RVA: 0x0020CE85 File Offset: 0x0020B085
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneUpdatePositionVersionNotify other)
		{
			return other != null && (other == this || (this.PosVersion == other.PosVersion && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C1E9 RID: 49641 RVA: 0x0020CEB4 File Offset: 0x0020B0B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PosVersion != 0U)
			{
				num ^= this.PosVersion.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C1EA RID: 49642 RVA: 0x0020CEF3 File Offset: 0x0020B0F3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C1EB RID: 49643 RVA: 0x0020CEFB File Offset: 0x0020B0FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C1EC RID: 49644 RVA: 0x0020CF04 File Offset: 0x0020B104
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PosVersion != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.PosVersion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C1ED RID: 49645 RVA: 0x0020CF38 File Offset: 0x0020B138
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PosVersion != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PosVersion);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C1EE RID: 49646 RVA: 0x0020CF76 File Offset: 0x0020B176
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneUpdatePositionVersionNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PosVersion != 0U)
			{
				this.PosVersion = other.PosVersion;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C1EF RID: 49647 RVA: 0x0020CFA7 File Offset: 0x0020B1A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C1F0 RID: 49648 RVA: 0x0020CFB0 File Offset: 0x0020B1B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.PosVersion = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004E56 RID: 20054
		private static readonly MessageParser<SceneUpdatePositionVersionNotify> _parser = new MessageParser<SceneUpdatePositionVersionNotify>(() => new SceneUpdatePositionVersionNotify());

		// Token: 0x04004E57 RID: 20055
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E58 RID: 20056
		public const int PosVersionFieldNumber = 10;

		// Token: 0x04004E59 RID: 20057
		private uint posVersion_;
	}
}
